#include <stdio.h>
//输入一个5位数，打印出个十百千万位上的数字分别是多少
int main()
{
    int GeWei, ShiWei, BaiWei, QianWei, WanWei, x;
    printf("Please input a number with 5 digits: ");
    scanf("%d", &x);
    WanWei = x / 10000;         /*分解出万位*/
    QianWei = x % 10000 / 1000; /*分解出千位*/
    BaiWei = x % 1000 / 100;   /*分解出千位*/
    ShiWei = x % 100 / 10;      /*分解出十位*/
    GeWei = x % 10;             /*分解出个位*/
    printf("Wan wei shi: %d\n", WanWei);
    printf("Qian wei shi: %d\n", QianWei);
    printf("Bai wei shi: %d\n", BaiWei);
    printf("Shi wei shi: %d\n", ShiWei);
    printf("Ge wei shi: %d\n", GeWei);
}

